# # P1420 最长连号
# n = int(input())
# lst = [int(i) for i in input().split()]
#
# cnt = 1
# temp = []
#
# for i in range(1,n):
#     if lst[i] - lst[i-1] == 1:
#         cnt += 1
#     else:
#         temp.append(cnt)
#         cnt = 1
#     temp.append(cnt)
# print(max(temp))



# P1421 小玉买文具
# a,b = [int(i) for i in input().split()]
# num = float(f"{a}.{b}")
# print(int(num//1.9))



# P1422 小玉家的电费
# num = int(input())
# mny = 0
# if num <= 150:
#     mny = (num*0.4463)
# elif 151 <= num <= 400:
#     mny = ((150 * 0.4463)+((num-150)*0.4663))
# else:
#     mny = ((150 * 0.4463) + (250 * 0.4663) + ((num-400)*0.5663))
# print('%.1f' % mny)



# P1424 小鱼的航程（改进版）
# num, day = [int(i) for i in input().split()]
# cnt = 0
# for i in range(day):
#     if num == 6:
#         pass
#     elif num == 7:
#         num = 1
#         continue
#     else:
#         cnt += 1
#     num += 1
# print(cnt*250)


# P1425 小鱼的游泳时间
# a,b,c,d = [int(i) for i in input().split()]
# mnt = (c*60+d)-(a*60+b)
# print(mnt//60,mnt%60)



# P1426 小鱼会有危险吗